package com.vdong.common.oauth.common.enums;

import lombok.Getter;
import lombok.Setter;

/**
 * Created by WangGang on 2017/6/22 0022.
 * E-mail userbean@outlook.com
 * The final interpretation of this procedure is owned by the author
 */
public enum ProcessExceptionEnum {
    //参数
    EB00000001("EB00000001", "登陆失败!"),
    EB00000002("EB00000002", "参数错误!"),
    EB00000003("EB00000003", "查找店铺失败!"),
    EB00000004("EB00000004", "该店铺的公众号未授权!"),
    EB00000005("EB00000005", "获取TOKEN失败!"),
    EB00000006("EB00000006", "获取用户信息失败!"),
    EB00000007("EB00000007", "获取openId或获取unionId失败!"),
    EB00000008("EB00000008", "该店铺不存在"),
    EB00000009("EB00000009", "调取推客服务失败"),
    EB00000010("EB00000010", "业务流水类型不能为空"),
    EB00000011("EB00000011", "用户新增失败"),
    EB00000012("EB00000012", "用户更新失败"),
    ;


    /**
     * // 成员变量
     */
    @Getter
    @Setter
    private String code;
    @Getter
    @Setter
    private String message;

    /**
     * 构造方法
     * @param code
     * @param message
     */
    private ProcessExceptionEnum(String code, String message) {
        this.code = code;
        this.message = message;

    }
}
